class Logger:
    @staticmethod
    def log(logname):
        from loguru import logger
        import os
        base_path = os.path.abspath('..')
        LogPath = base_path +os.sep+'Log'
        print(LogPath)
        logger.add(os.path.expanduser(LogPath + os.sep+logname + '.log'))
        return logger

